package com.jmp.base.dto;

import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class OrderSaveDto {
    /**
     * 金额校验开关
     */
    private boolean checkFlag;

    private Integer userId;

    private Integer addressId;
    private List<Supplier> supplierList;

    private Integer total;
    private BigDecimal totalPrice;

    @Data
    @Builder
    public static class Supplier {
        private Integer companyId;
        private List<Goods> goodsList;
        private BigDecimal totalPrice;
        private String remark;
    }

    @Data
    @Builder
    public static class Goods {
        private Integer specId;
        private Integer num;

        private Integer shopCartId;
        private Integer cardId;
        private Integer forwardId;
        private Integer groupId;
    }
}
